#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
using namespace std;

//int func()
//{
//    cout << "调用func"<<endl;
//    exit(1);
//
//    return 1;
//}

int main()
{



    //int a = 10, b = 0;
    //int c = a / b;  // 除以零导致异常终止
    //cout << c << endl;

    //cout << "This is exit"<< endl;
    //cout << "This will not be flushed.";  // 没有换行符，缓冲区未刷新
    //exit(0);  // 直接终止程序，不刷新缓冲区
    //cout<<endl;
    //cout << "This is _exit"<< endl;
    //cout << "This will not be flushed.";  // 没有换行符，缓冲区未刷新
    //_exit(0);  // 直接终止程序，刷新缓冲区


//    int funcret = func();
//    cout << funcret << endl;
    return 0;
}

